/*
 * @Author: sunzhijun 
 * @Date: 2019-05-23 20:22:58 
 * @Last Modified by: sunzhijun
 * @Last Modified time: 2019-06-19 17:17:32
 */

import {cacheTools} from 'nc-lightapp-front';

/**
 * @param {*} rows 操作列的数据
 * @param {*} key  数据主键
 * @memberof setAllpks 排序设置allpks cache
 */
export default function setAllpks(rows,key){
    let allpks = [];
    rows && rows.map((item,index)=>{
        allpks.push(item.values[key].value);
    })

    cacheTools.set('allpks',allpks);
}